const fs = require("fs");
const getMoviesData = require("./getMovies.js");

getMoviesData().then((movies) =>
  fs.writeFile("movie.json", JSON.stringify(movies), function () {
    console.log("成功");
  })
);
